package com.example.organization.service;

import com.example.model.entity.user.User;
import com.example.service.UserService;
import jakarta.annotation.Resource;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class OrgService {
    private final UserService userService;

    public List<User> getUsersInDepartment(String department) {
        // 直接调用本地方法
        return userService.getUsersByCondition("department=" + department);
    }
}